use axum::{
    routing::get,
    Router,
};
mod master;

pub fn auth_routes() -> Router{
    Router::new()
    .route("/",      get(master::list).post(master::save).put(master::save))
    .route("/{id}", get(master::find).delete(master::del))
    .route("/dict", get(master::dict))
    .route("/dict_front", get(master::dict_front))
    .route("/dict_migration", get(master::dict_migration))
    .route("/table", get(master::table))
}